package com.biz.primus.ms.member.dao.po;

import com.biz.primus.ms.base.jpa.po.BaseEntityPKIncrement;
import lombok.*;

import javax.persistence.*;

/**
 * 会员银行卡相关信息
 * @author jun.liu
 * @date 2017年10月22日
 * @reviewer
 * @see
 */
@Entity
@Table(name = "member_bank_card")
@Data
@EqualsAndHashCode(callSuper=true)
public class MemberBankCard extends BaseEntityPKIncrement
{

    /**
     * 关联会员详情Member对象
     */
    @Column(name = "memberId")
    private Long memberId;

    //银行名称
    @Column(name = "bank_name", nullable = false, length = 32)
    private String bankName;

    //支行
    @Column(name = "sub_bank_name", length = 32)
    private String subBankName;

    //姓名
    @Column(name = "name", length = 20)
    private String name;

    //银行账号
    @Column(name = "card_code", nullable = false, length = 32)
    private String cardCode;

    // 开户行地址
    @Column(name = "opening_bank_address", nullable = false, length = 200)
    private String openingBankAddress;

    /**
     * 最后一次使用标识
     */
    @Column
    private Boolean lastUse = false;
}
